﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="TheGameClient.FeatureUsenetControl"
    mc:Ignorable="d" d:DesignWidth="795" d:DesignHeight="631">
	<Grid x:Name="LayoutRoot">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="Modes" ei:ExtendedVisualStateManager.UseFluidLayout="True">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0"/>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="Overview"/>
				<VisualState x:Name="ThreadView">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid1">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Visible</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<VisualStateManager.CustomVisualStateManager>
			<ei:ExtendedVisualStateManager/>
		</VisualStateManager.CustomVisualStateManager>
		<Grid x:Name="grid">
			<Grid.RowDefinitions>
				<RowDefinition Height="27"/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<ScrollViewer Grid.Row="1">
				<ItemsControl x:Name="itmThreads"/>
			</ScrollViewer>
			<sdk:DataPager x:Name="pager" HorizontalAlignment="Right" PageSize="5" d:LayoutOverrides="Height" DisplayMode="FirstLastPreviousNextNumeric" Background="{StaticResource ButtonBackground}" Foreground="White" BorderBrush="White" BorderThickness="0.5" VerticalAlignment="Top"/>
			<Button x:Name="btnNewThread" Content="New thread" HorizontalAlignment="Left" Width="85" VerticalAlignment="Top" Height="24" Click="BtnNewThreadClick"/>
		</Grid>
		<Grid x:Name="grid1" Background="#3FFFFFFF" Visibility="Collapsed">
			<Border Margin="5" BorderBrush="White" BorderThickness="1" CornerRadius="4" Background="{StaticResource TargetingControlBackground}">
				<Grid Margin="2">
					<ScrollViewer x:Name="scrlPosts" BorderThickness="0" Margin="0,30,0,0">
						<StackPanel>
							<ItemsControl x:Name="itmPosts" d:LayoutOverrides="Width"/>
							<Button x:Name="btnReply" Content="Post reply" Width="75" HorizontalAlignment="Right" Margin="0,10,0,0" Click="BtnReplyClick"/>
						</StackPanel>
					</ScrollViewer>
					<Button x:Name="btnBack" Content="Back" HorizontalAlignment="Left" VerticalAlignment="Top" Width="50" Height="22" Click="BtnBackClick"/>
					<sdk:DataPager x:Name="postpager" HorizontalAlignment="Right" PageSize="10" VerticalAlignment="Top" Background="{x:Null}" Foreground="White" DisplayMode="FirstLastPreviousNextNumeric" BorderBrush="White" BorderThickness="0.5"/>
				</Grid>
			</Border>
		</Grid>
	</Grid>
</UserControl>
